<style>
ul {
  padding: 0px;
  padding-left: 16px;
}
</style><?
include('custom/metatabs.php');
?>
<h3><?= $this->news['n_title'] ?></h3>
<div style="padding: 8px;"><?= nl2br($this->news['n_content']) ?></div>
<br/>
<h3>Comments</h3>
<table width="450">
<?
if (sizeof($this->comments) == 0)
  print('<tr><td><b style="color: gray">no comments yet</b></td></tr>');
foreach($this->comments as $cds) if (trim(strip_tags($cds['nc_content'], '<b><i><li><ul>'))!='')
{
  ?>
  <tr><td valign="top"><img src="<?= $cds['u_fb_pic_square'] ?>"/></td><td valign="top">
    <div style="border-top: 1px solid gray; padding: 4px;"><b><?= $cds['u_fb_name'] ?></b> 
    <span style="color: gray">says: </span><br/><?= nl2br(trim(strip_tags($cds['nc_content'], '<b><i><li><ul><img>'))) ?></div>
  </td></tr><?
}
?>
</table>
<br/>
<div id="commentarea">
<h4>Leave a comment</h4>
<form action="<?= actionUrl('news', 'meta') ?>" method="post">
  <input type="hidden" name="cmd" value="postcomment"/>
  <input type="hidden" name="id" value="<?= $_REQUEST['id']+0 ?>"/>
  <textarea name="content"></textarea>
  <input type="submit" name="submitbtn" value="Send"/>
</form>
</div>
<script>
document.getElementById("commentarea").scrollIntoView(false);
</script>
